<template>
  <div>
    <!-- 面包屑导航区 -->
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>设备管理</el-breadcrumb-item>
    </el-breadcrumb>
    <el-card>
      <el-row :gutter="20">
        <el-col :span="10"
          ><div class="grid-content bg-purple">
            <el-input placeholder="请输入内容" class="input-with-select">
              <el-button slot="append" icon="el-icon-search"></el-button>
            </el-input></div
        ></el-col>
        <!-- <el-col :span="6"
          ><div class="grid-content bg-purple">
            <el-button type="success">待定功能键</el-button>
          </div></el-col
        > -->
      </el-row>
      <el-table :data="tableData" border style="width: 100%" stripe>
        <el-table-column label="#" type="index"></el-table-column>
        <el-table-column prop="id" label="ID"> </el-table-column>
        <el-table-column prop="owner" label="归属"> </el-table-column>
        <el-table-column prop="name" label="绑定店名">
        </el-table-column>
        <el-table-column prop="status" label="状态" width="65">
          <template slot-scope="scope">
            <el-switch
              disabled
              v-model="scope.row.status"
              active-color="#13ce66">
            </el-switch>
          </template>
        </el-table-column>
        <el-table-column label="操作">
          <template slot-scope="scope">
            <el-button size="mini" @click="handleEdit(scope.$index, scope.row)"
              >编辑</el-button
            >
            <el-button
              size="mini"
              type="danger"
              @click="handleDelete(scope.$index, scope.row)"
              >删除</el-button
            >
          </template>
        </el-table-column>
      </el-table>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'Equipment',
  data () {
    return {
      tableData: [
        {
          id: '0670ff515348786687036027',
          owner: '',
          name: '观音桥西餐店',
          status: true
        }
      ]
    }
  }
}
</script>

<style lang="less" scoped></style>
